package com.huanletao.bean;

import org.apache.commons.beanutils.BeanUtils;

import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
import java.util.Map;

/**
 *
 */
public class App {
    public static void main( String[] args )
    {
        Dog dog = new Dog();
        Map<String, Object> map = new HashMap<>();
        map.put("age",2);
        map.put("name","huahua");
        try {
        //    BeanUtils.populate(dog,map);
        } finally {
        }
        System.out.println("dog:"+dog);//dog:Dog{name='huahua', age=2}

    }
}

